package com.lboyang.cloud.service;

import com.lboyang.entity.Payment;
import com.lboyang.entity.common.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 *
 * @author Aiguodala
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {

    /**
     *
     * @param id
     * @return
     */
    @GetMapping(value = "/payment/get/{id}")
    ApiResult<Payment> getPaymentById(@PathVariable("id") Long id);

}
